package com.wzk.travelspringboot.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzk.travelspringboot.entity.Scenic;

import java.util.List;

/**
 * @Author: WangZiKang
 * @Date: 2025/1/8 21:34
 */
public interface ScenicDAO extends BaseMapper<Scenic> {

    //判断是否存在此名称的景区数据
    int queryScenicCountByName(String name);

    //模糊查询根据名称
    List<Scenic> queryLikeName(String name);

    int incrView(long id);

    Scenic queryByName(String name);

}
